package com.kymatrix.mpo.plus.bpm.server.model.form.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

@ApiModel(value = "管理后台 - 流程模型的导入 Request 相比流程模型的新建来说，只是多了一个 bpmnFile 文件")
@Data
@Accessors(chain=true)
public class ImportSaveBpmModeReq {

    @ApiModelProperty(value = "BPMN 文件")
    @NotNull(message = "BPMN 文件不能为空")
    private MultipartFile bpmnFile;

    @ApiModelProperty(value = "流程标识", example = "process_yudao")
    @NotEmpty(message = "流程标识不能为空")
    private String key;

    @ApiModelProperty(value = "流程名称", example = "zhangsan")
    @NotEmpty(message = "流程名称不能为空")
    private String name;

    @ApiModelProperty(value = "流程描述", example = "我是描述")
    private String description;

}
